package io.renren.modules.substation.dao;

import io.renren.modules.substation.entity.TInfoUserAreaEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户区域权限表
 * 
 * @author lan
 * @email sunlightcs@gmail.com
 * @date 2020-06-20 17:05:11
 */
@Mapper
public interface TInfoUserAreaDao extends BaseMapper<TInfoUserAreaEntity> {
    /**
     * 根据用户ID数组，批量删除
     */
    int deleteBatch(Long[] userIds);

    List<Long> queryAreaIdList(Long id);

    List<TInfoUserAreaEntity> listByUserId(Long id);
}
